package com.mxun.winefox.data

data class ChatMessage(
    val displayContent: String,  // 显示用（中文）
    val ttsContent: String? = null, // 朗读用（日语或中文）
    val content: String,         // 完整原始内容（可用于日志或复制）
    val fromUser: Boolean = false
) {
    companion object {
        fun userMessage(text: String) = ChatMessage(
            displayContent = text,
            ttsContent = null,
            content = text,
            fromUser = true
        )

        fun botMessage(
            display: String,
            tts: String?,
            raw: String
        ) = ChatMessage(
            displayContent = display,
            ttsContent = tts,
            content = raw,
            fromUser = false
        )
    }
}
